package cn.chencaiju.day02;

import java.util.Arrays;

public class ArrayTest2 {
	public static void main(String[] args) {
		int[]	numbers={2,8,10,12,33};
		reverse(numbers);
	}
	public static void reverse(int[] numbers) {
		int temp=0;
		int end=numbers.length-1;
		int mid=numbers.length/2;
		for(int i=0;i<mid;i++) {
			temp=numbers[i];
			numbers[i]=numbers[end];
			numbers[end--]=temp;
		}
		System.out.println(Arrays.toString(numbers));
	}
}
